package com.chentianyu.demo01.service;

import com.chentianyu.demo01.mapper.StudentsMapper;
import com.chentianyu.demo01.obj.Students;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentsService {
    @Autowired
    StudentsMapper studentsMapper;

    public List<Students> selectAllStudents(){
        return studentsMapper.selectAllStudents();
    }
    public void postStudent(Integer uid,String name,Integer age){
        studentsMapper.postStudent(uid, name, age);
    }
    public void setSex_uid(Integer uid,String sex){
        studentsMapper.setSex_uid(uid, sex);
    }
}
